Optimal. Leaf size=61 \[ \frac{2}{a^3 d (\cot (c+d x)+i)}-\frac{i \log (\sin (c+d x))}{a^3 d}+\frac{i \log (\tan (c+d x))}{a^3 d}-\frac{x}{a^3} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0643177, antiderivative size = 61, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 3, integrand size = 29, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.103, Rules used = {3088, 848, 77} \[ \frac{2}{a^3 d (\cot (c+d x)+i)}-\frac{i \log (\sin (c+d x))}{a^3 d}+\frac{i \log (\tan (c+d x))}{a^3 d}-\frac{x}{a^3} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3088
Rule 848
Rule 77
Rubi steps
\begin{align*} \int \frac{\sec (c+d x)}{(a \cos (c+d x)+i a \sin (c+d x))^3} \, dx &=-\frac{\operatorname{Subst}\left (\int \frac{1+x^2}{x (i a+a x)^3} \, dx,x,\cot (c+d x)\right )}{d}\\ &=-\frac{\operatorname{Subst}\left (\int \frac{-\frac{i}{a}+\frac{x}{a}}{x (i a+a x)^2} \, dx,x,\cot (c+d x)\right )}{d}\\ &=-\frac{\operatorname{Subst}\left (\int \left (\frac{i}{a^3 x}+\frac{2}{a^3 (i+x)^2}-\frac{i}{a^3 (i+x)}\right ) \, dx,x,\cot (c+d x)\right )}{d}\\ &=-\frac{x}{a^3}+\frac{2}{a^3 d (i+\cot (c+d x))}-\frac{i \log (\sin (c+d x))}{a^3 d}+\frac{i \log (\tan (c+d x))}{a^3 d}\\ \end{align*}
Mathematica [A] time = 0.261845, size = 91, normalized size = 1.49 \[ \frac{i \sec ^2(c+d x) (\sin (2 (c+d x))-i \cos (2 (c+d x))) (\log (\cos (c+d x))+\tan (c+d x) (i \log (\cos (c+d x))+d x+i)-i d x-1)}{a^3 d (\tan (c+d x)-i)^3} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.185, size = 40, normalized size = 0.7 \begin{align*}{\frac{i\ln \left ( \tan \left ( dx+c \right ) -i \right ) }{d{a}^{3}}}+2\,{\frac{1}{d{a}^{3} \left ( \tan \left ( dx+c \right ) -i \right ) }} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.61716, size = 134, normalized size = 2.2 \begin{align*} -\frac{4 \, d x + 4 \, c - 2 \, \arctan \left (\sin \left (2 \, d x + 2 \, c\right ), \cos \left (2 \, d x + 2 \, c\right ) + 1\right ) - 2 i \, \cos \left (2 \, d x + 2 \, c\right ) + i \, \log \left (\cos \left (2 \, d x + 2 \, c\right )^{2} + \sin \left (2 \, d x + 2 \, c\right )^{2} + 2 \, \cos \left (2 \, d x + 2 \, c\right ) + 1\right ) - 2 \, \sin \left (2 \, d x + 2 \, c\right )}{2 \, a^{3} d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 0.480306, size = 157, normalized size = 2.57 \begin{align*} -\frac{{\left (2 \, d x e^{\left (2 i \, d x + 2 i \, c\right )} + i \, e^{\left (2 i \, d x + 2 i \, c\right )} \log \left (e^{\left (2 i \, d x + 2 i \, c\right )} + 1\right ) - i\right )} e^{\left (-2 i \, d x - 2 i \, c\right )}}{a^{3} d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: AttributeError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.14531, size = 138, normalized size = 2.26 \begin{align*} -\frac{-\frac{2 i \, \log \left (\tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right ) - i\right )}{a^{3}} + \frac{i \, \log \left ({\left | \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right ) + 1 \right |}\right )}{a^{3}} + \frac{i \, \log \left ({\left | \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right ) - 1 \right |}\right )}{a^{3}} + \frac{3 i \, \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{2} + 10 \, \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right ) - 3 i}{a^{3}{\left (\tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right ) - i\right )}^{2}}}{d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]